package com.kuang.pojo;


import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class News {

    //主键是自增的
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;

    private String description;

    private String content;

    private Integer authorid;

    private String time;

    //这个注解的意思是，这个属性不在数据库表里
    @TableField(exist = false)
    private String author;

}
